package com.zan.springcloud.dao;

import com.zan.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author Zan
 * @Create 2024/1/7 14:14
 * @Description :
 */
@Mapper
public interface OrderDao {

    // 1.新建订单
    void create(Order order);

    // 2.修改订单状态, 从0改为1
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}
